<?php /* Smarty version Smarty-3.1.7, created on 2012-04-10 16:02:23
         compiled from ".\templates\member_edit_input.tpl" */ ?>
<?php /*%%SmartyHeaderCode:206564f7d3a5814fb35-34052668%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '00941df4e96accef0f5408f16b668cb36084a5b3' => 
    array (
      0 => '.\\templates\\member_edit_input.tpl',
      1 => 1334040492,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '206564f7d3a5814fb35-34052668',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4f7d3a5843e10',
  'variables' => 
  array (
    'error_nickname_yn' => 0,
    'member' => 0,
    'error_mailaddress_yn' => 0,
    'error_mailaddress_already' => 0,
    'error_password_yn' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f7d3a5843e10')) {function content_4f7d3a5843e10($_smarty_tpl) {?><html>
<head>
<?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</head>
<body>
<h1>SHONAN BBS 管理画面</h1>
<hr noshade size="1">
<div id="content">
  <div id="contentLeft">

    <h2>メンバー編集画面</h2>
    <form action="./member_edit_confirm.php"
          method="post"
          enctype="multipart/form-data">

    <div class="tblData">
    <table>
    <tr>
      <th>ニックネーム</th>
      <td>
      
<?php if ($_SESSION['tmpnickname']!=''||$_smarty_tpl->tpl_vars['error_nickname_yn']->value=="y"){?>
    <input type="text" name="nickname" size"20"
           value="<?php echo htmlspecialchars($_SESSION['tmpnickname'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }else{ ?>
    <input type="text" name="nickname" size="20"
           value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['member']->value['nickname'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['error_nickname_yn']->value=="y"){?>
<font color="red">ニックネームが空です</font>
<?php }?>

    </td>
  </tr>
  <tr>
    <th>メールアドレス</th>
  <td>
<?php if ($_SESSION['tmpmailaddress']!=''||$_smarty_tpl->tpl_vars['error_mailaddress_yn']->value=="y"){?>
      <input type="text" name="mailaddress" size"20"
           value="<?php echo htmlspecialchars($_SESSION['tmpmailaddress'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }else{ ?>
      <input type="text" name="mailaddress" size="20"
           value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['member']->value['mailaddress'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['error_mailaddress_yn']->value=="y"){?>
<font color="red">メールアドレスが空です</font>
<?php }elseif($_smarty_tpl->tpl_vars['error_mailaddress_already']->value=="y"){?>
<font color="red">このメールアドレスは使われています</font>
<?php }?>
    </td>
  </tr>
  <tr>
    <th>パスワード</th>
  <td>
<?php if ($_SESSION['tmppassword']!=''||$_smarty_tpl->tpl_vars['error_password_yn']->value=="y"){?>
      <input type="text" name="password" size"20"
           value="<?php echo htmlspecialchars($_SESSION['tmppassword'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }else{ ?>
      <input type="text" name="password" size="20"
           value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['member']->value['password'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['error_nickname_yn']->value=="y"){?>
<font color="red">パスワードが空です</font>
<?php }?>

    </td>
  </tr>
  <tr>
    <th>管理者権限</th>
  <td>
<?php if ($_SESSION['tmpadmin_yn']!=''){?>
      <input type="radio" name="admin_yn" value="y"
      <?php if ($_SESSION['tmpadmin_yn']=="y"){?>checked<?php }?>>あり
      <input type="radio" name="admin_yn" value="n"
      <?php if ($_SESSION['tmpadmin_yn']=="n"){?>checked<?php }?>>なし
<?php }else{ ?>
      <input type="radio" name="admin_yn" value="y"
      <?php if ($_smarty_tpl->tpl_vars['member']->value['admin_yn']=="y"){?>checked<?php }?>>あり
      <input type="radio" name="admin_yn" value="n"
      <?php if ($_smarty_tpl->tpl_vars['member']->value['admin_yn']=="n"){?>checked<?php }?>>なし
<?php }?>
    </td>
  </tr>
  </table>
  </div>
  <input type="hidden" name="member_edit_input_id"
         value="<?php echo $_SESSION['member_edit_input_id'];?>
">
  <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['member']->value['id'];?>
">
  <input type="submit" name="submit" value="確認する">
  </form>

  </div>
  <div id="contentRight">
<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

  </div>
</div>
<div class="clr"></div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</body>
</html><?php }} ?>